package com.kh.pajx.sop.view.interceptor;

import com.kh.pajx.sop.base.DatabaseContextHolder;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;

public class ChangeDataSourceInterceptor extends AbstractInterceptor {

	private static final long serialVersionUID = -8080313143936681524L;

	@Override
	public String intercept(ActionInvocation invocation) throws Exception {
		DatabaseContextHolder.setCustomerType(DatabaseContextHolder.DATA_SOURCE_DBAK);
		return invocation.invoke();
	}
	
	

}
